package task09;

import java.util.Scanner;

/**
 * @author Administrator
 * 水仙花：邱１００到９９９之间的水仙花
 * １５３
 */
public class SHuixianhua__while {
    public static void main(String[] args) {

//        Scanner sc = new Scanner(System.in);
////        键盘输入的数据保存在num
//        int x = sc.nextInt();
        int x=100;

//        先把三位数拆分成个十百
        while (x<=999&x>=100)
        {
            int bai=x/100;
            int shi=(x/10)%10;
            int ge=x%10;

            if(x==(bai*bai*bai)+(shi*shi*shi)+(ge*ge*ge))
             {
                 System.out.println(x+"这个数是水仙花");
             }


             x++;
        }

    }






}
